package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购入库物料详细对象 lny_rm_order_detail
 * 
 * @author coderChen
 * @date 2024-06-16
 */
public class LnyRmOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物料id */
    @Excel(name = "物料id")
    private Long matId;


    /** 供应商id */
    private Long supplierId;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long bpsNum;

    /** bom_id */
    @Excel(name = "bom_id")
    private Long bomId;

    /** order_id */
    @Excel(name = "order_id")
    private Long orderId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long proId;

    /** 入库编号 */
    @Excel(name = "入库编号")
    private String bpsSn;

    /** 到货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bpsDate;

    /** 采购订单编号 */
    @Excel(name = "采购订单编号")
    private String purchaseSn;




    /** 产品库存id */
    private Long proStrmId;


    /** 车间任务id */
    private Long taskId;

    /** 库房id */
    private Long strmId;

    /** 即将入库数量 */
    private Long num;


    /** 已入库数量 */
    private Long bpsRenum;

    /** 入库类型 */
    @Excel(name = "入库类型")
    private Integer bpsType;


    /** 逻辑删除;0：存在；1：删除 */
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedDate;

    /** 入库状态 */
    private int state;

    /** 车间任务编号 */
    private String taskSn;

    /** 产品名称 */
    private String proName;

    /** 物料名称*/
    private String matName;

    /** 物料编号*/
    private String matSn;

    /** 供应商名称*/
    private String supplierName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMatId(Long matId) 
    {
        this.matId = matId;
    }

    public Long getMatId() 
    {
        return matId;
    }
    public void setBpsNum(Long bpsNum) 
    {
        this.bpsNum = bpsNum;
    }

    public Long getBpsNum() 
    {
        return bpsNum;
    }
    public void setBomId(Long bomId) 
    {
        this.bomId = bomId;
    }

    public Long getBomId() 
    {
        return bomId;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setBpsSn(String bpsSn) 
    {
        this.bpsSn = bpsSn;
    }

    public String getBpsSn() 
    {
        return bpsSn;
    }
    public void setBpsDate(Date bpsDate) 
    {
        this.bpsDate = bpsDate;
    }

    public Date getBpsDate() 
    {
        return bpsDate;
    }
    public void setPurchaseSn(String purchaseSn) 
    {
        this.purchaseSn = purchaseSn;
    }

    public String getPurchaseSn() 
    {
        return purchaseSn;
    }

    public void setProStrmId(Long proStrmId)
    {
        this.proStrmId = proStrmId;
    }

    public Long getProStrmId()
    {
        return proStrmId;
    }


    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }


    public Long getStrmId() {
        return strmId;
    }

    public void setStrmId(Long strmId) {
        this.strmId = strmId;
    }

    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }



    public Long getBpsRenum() {
        return bpsRenum;
    }

    public void setBpsRenum(Long bpsRenum) {
        this.bpsRenum = bpsRenum;
    }


    public void setBpsType(Integer bpsType)
    {
        this.bpsType = bpsType;
    }

    public Integer getBpsType()
    {
        return bpsType;
    }
    public void setIsDeleted(Integer isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted()
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate)
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate()
    {
        return updatedDate;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }


    public String getTaskSn() {
        return taskSn;
    }

    public void setTaskSn(String taskSn) {
        this.taskSn = taskSn;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }
    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }


    public String getMatName() {
        return matName;
    }

    public void setMatName(String matName) {
        this.matName = matName;
    }

    public String getMatSn() {
        return matSn;
    }

    public void setMatSn(String matSn) {
        this.matSn = matSn;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("matId", getMatId())
            .append("bpsNum", getBpsNum())
            .append("bomId", getBomId())
            .append("proId", getProId())
            .append("bpsSn", getBpsSn())
            .append("bpsDate", getBpsDate())
            .append("purchaseSn", getPurchaseSn())
            .toString();
    }
}
